package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;

/**
 * @TableName business
 */
@TableName(value = "business")
@Data
public class Business implements Serializable {
    /**
     * 店家ID
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 密码
     */
    private String password;

    /**
     * 店家名称
     */
    private String name;

    /**
     * 店家介绍
     */
    private String introduce;

    /**
     * 店家评分
     */
    private String score;

    /**
     * 店家图片
     */
    private String pic;

    /**
     * 距离
     */
    private Double distance;

    /**
     * 销量
     */
    private String sales;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    //账户余额
    private Double balance;
}